// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CoreTranslate generated by hbm2java
 */
@Entity
@Table(name = "core_translate", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"store_id", "locale", "string" }))
public class CoreTranslate implements java.io.Serializable {

	private Integer keyId;
	private CoreStore coreStore;
	private String string;
	private String translate;
	private String locale;

	public CoreTranslate() {
	}

	public CoreTranslate(CoreStore coreStore, String string, String locale) {
		this.coreStore = coreStore;
		this.string = string;
		this.locale = locale;
	}

	public CoreTranslate(CoreStore coreStore, String string, String translate,
			String locale) {
		this.coreStore = coreStore;
		this.string = string;
		this.translate = translate;
		this.locale = locale;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "key_id", unique = true, nullable = false)
	public Integer getKeyId() {
		return this.keyId;
	}

	public void setKeyId(Integer keyId) {
		this.keyId = keyId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "string", nullable = false)
	public String getString() {
		return this.string;
	}

	public void setString(String string) {
		this.string = string;
	}

	@Column(name = "translate")
	public String getTranslate() {
		return this.translate;
	}

	public void setTranslate(String translate) {
		this.translate = translate;
	}

	@Column(name = "locale", nullable = false, length = 20)
	public String getLocale() {
		return this.locale;
	}

	public void setLocale(String locale) {
		this.locale = locale;
	}

}
